package java8_20;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class JiaowuTest {
    public static void main(String[] args) {
        Student s=new Student();
        s.javaScore=40;
        s.htmlScore=40;


        Jiaowuchu j=new Jiaowuchu();

        //int avg=j.calc(s.javaScore,s.htmlScore);
        j.name="北大青鸟教务处";
        Scanner in=new Scanner(System.in);
        System.out.println("请输入小李两门课的成绩：");
        int java=in.nextInt();
        int h5=in.nextInt();
        int avg=j.calc(java,h5);
        System.out.println("java成绩是："+java+",h5成绩是："+h5+",平均分是："+avg);
    }
}
